.music_box{
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    .music_header{
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--accent-secondary);
        padding: 0 20px;
        box-sizing: border-box;
        justify-content: space-between;
        .music_header_logo {
            font-size: 24px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
            svg{
                color: var(--primary);
            }
        }
        .music_header_search_container{
            width: 300px;
            box-sizing: border-box;
            position: relative;
            display: flex;
            align-items: center;
            i{
                position: absolute;
                right: 20px;
                cursor: pointer;
                &:hover{
                    color: var(--primary);
                }
            }
        }
    }
    .music_main{
        flex: 1;
        height: 0;
        display: flex;
        margin-bottom: var(--musicHeight);
        .music_main_left{
            display: flex;
            flex-direction: column;
            width: 240px;
            border-right: 1px solid var(--accent-secondary);
            .music_main_left_header{
                display: flex;
                height: 40px;
                border-bottom: 1px solid var(--accent-secondary);
                .music_main_left_header_action{
                    flex: 1;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 0 6px;
                    cursor: pointer;
                    position: relative;
                    width: 100%;
                    .music_create_myPlaylist_btn{
                        opacity: 0;
                        position: absolute;
                        transition: 0.2s opacity ease;
                        right: 12px;
                        color: var(--text-tertiary);
                        font-size: 14px;
                        :hover{
                            color: var(--text-primary);
                        }
                    }
                    &:hover{
                        background-color: var(--bg-secondary);
                    }
                    &:hover .music_create_myPlaylist_btn{
                        opacity: 1;
                    }
                }
                .active{
                    color: var(--primary);
                }
            }
            .music_main_left_playlists{
                flex: 1;
                display: flex;
                flex-direction: column;
                overflow: auto;
                position: relative;
                .music_main_left_playlists_item{
                    display: flex;
                    position: relative;
                    align-items: center;
                    cursor: pointer;
                    padding: 4px 12px;
                    gap: 8px;
                    &:hover{
                        background-color: var(--bg-secondary);
                    }
                    .music_playlists_item_cover{
                        width: 40px;
                        height: 40px;
                        border-radius: 8px;
                        overflow: hidden;
                        img{
                            width: 100%;
                            height: 100%;
                        }
                        .music_cover{
                            width: 100%;
                            height: 100%;
                            font-size: 28px;
                        }
                    }
                    .music_playlists_item_name{
                        flex: 1;
                        display: -webkit-box;
                        -webkit-line-clamp: 2; /* 限制两行 */
                        -webkit-box-orient: vertical;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        font-size: 14px;
                    }
                    .music_playlists_item_setting{
                        display: flex;
                        opacity: 0;
                        position: absolute;
                        transition: 0.3s opacity ease;
                        right: 8px;
                        color: var(--text-tertiary);
                        width: 16px;
                        height: 16px;
                        align-items: center;
                        justify-content: center;
                        span{
                            margin: 0;
                        }
                        &:hover{
                            color: var(--text-secondary);
                        }
                    }
                    &:hover .music_playlists_item_setting{
                        opacity: 1;
                    }
                }
                .active{
                    color: var(--primary);
                }
            }
        }
        .music_list_section {
            flex: 1;
            width: 0;
            display: flex;
            background: var(--darker-bg);
            border-radius: 12px;
            padding: 20px;
            height: 100%;
            flex-direction: column;
            .music_list_header {
                display: flex;
                align-items: center;
                margin-bottom: 20px;
                .music_list_header_left{
                    .music_cover{
                        width: 120px;
                        height: 120px;
                    }
                }
                .music_section_info {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                    max-width: 560px;
                    align-items: flex-start;
                    justify-content: flex-start;
                    gap: 8px;
                    div{
                        display: flex;
                        justify-content: flex-start;
                    }
                    .music_section_info_name{
                        font-size: 24px;
                        font-weight: 600;
                    }
                    .music_section_info_descripe{
                        display: flex;
                        gap: 6px;
                        font-size: 14px;
                        font-weight: normal;
                        color: var(--text-secondary);
                        h4{
                            margin: 0;
                        }
                    }
                    .music_section_info_actions{
                        display: flex;
                    }
                }
            }
            .music_list {
                flex: 1;
                overflow: auto;
                padding-bottom: 12px;
                display: flex;
                flex-direction: column;
                gap: 6px;
                .music_item {
                    display: flex;
                    align-items: center;
                    padding: 12px;
                    border-radius: 8px;
                    transition: all 0.3s ease;
                    cursor: pointer;
                    .music_info {
                        flex: 1;
                        min-width: 0;
                        .music_title {
                            font-weight: 600;
                            font-size: 16px;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                        .music_artist {
                            font-size: 14px;
                            color: var(--text-secondary);
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                    }
                    .music_duration {
                        font-size: 14px;
                        color: var(--text-secondary);
                        margin: 0 16px;
                    }
                    .music_actions {
                        display: flex;
                        gap: 10px;
                        .music_action_btn {
                            width: 32px;
                            height: 32px;
                            border-radius: 50%;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            cursor: pointer;
                            transition: all 0.3s ease;
                            font-size: 24px;
                            &:hover{
                                color: var(--primary);
                            }
                        }
                        .plus{
                            font-size: 20px;
                            span{
                                width: 1em;
                                height: 1em;
                            }
                        }
                    }
                    &:hover{
                        background-color: var(--bg-secondary);
                    }
                    &:hover .music_cover_playState{
                        display: flex;
                    }
                }
                .playing .music_cover_playState{
                    display: flex;
                }
                .ant-empty{
                    flex: 1;
                    color: var(--text-primary);
                    .ant-empty-description{
                        color: inherit;
                    }
                }
            }
        }
    }
    .music_cover {
        position: relative;
        width: 50px;
        height: 50px;
        border-radius: 8px;
        overflow: hidden;
        background: linear-gradient(45deg, #8A2BE2, #4B0082);
        margin-right: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 42px;
        svg{
            width: 1em;
            height: 1em;
        }
        img{
            width: 100%;
            height: 100%;
        }
        .music_cover_playState{
            background-color: var(--hover-dark);
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
    }
}

.music_addToPlayList{
    .music_addToPlayList_selector{
        padding: 0 12px;
        display: flex;
        gap: 12px;
        margin-top: 20px;
        .music_addToPlayList_selector_input{
            flex: 1;
            .mySelect_select{
                height: 40px;
            }
        }
    }
    .music_addToPlayList_footer{
        padding: 12px 20px;
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }
}